
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <%
        
        String usr_name=(String)session.getAttribute("username"); 
        
        %>
        <div>
            <form method="post" action="post_db.jsp">
                <table border="0" cellpadding="10">
                    <tr>
                        <td>
                            Type
                        </td>
                        <td>
                            <select name="type">
                                <option value="">Select..</option>
                                <option value="article">Article</option>
                                <option value="experience">Experiences</option>
                                <option value="joke">Jokes</option>
                                <option value="poetry">Poetry</option>
                                <option value="puzzle">Puzzles</option>
                                <option value="quote">Quotes</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Subject
                        </td>
                        <td>
                            <input type="text" name="subject" maxlength="100"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Post
                        </td>
                        <td>
                            <textarea cols="80" rows="10" spellcheck="true" maxlength="4000" name="post"></textarea> 
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <input type="hidden" name="usr_name" value="<%=usr_name%>" />
                            <input type="submit" value="Post" />
                            <input type="reset" value="Clear" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
</html>
